package org.huawei260.TiKu.ODsuanfa;

/**
 * @Author: qingle
 * @Date: 2024/10/28-16:11
 * @Description: 3100 【贪心】2023B-求最小步数
 * @version: 1.0
 */
import java.util.Scanner;
public class B_2023B_3100__贪心_求最小步数 {

//	public class Main {
		public static void main(String[] args) {
			Scanner sc = new Scanner(System.in);

			int n = sc.nextInt();

			System.out.println(getResult(n));
		}

		public static int getResult(int n) {
			if (n == 1) return 2; // -2 + 3
			if (n == 2) return 1; // 2
			if (n == 3) return 1; // 3

			int base = 2;
			return (n - 4) / 3 + base;
		}
	}